limits of piecewise functions